<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>侧边栏-SCM</title>
</head>
<body>

<th:block th:fragment="sidebar" th:with="scmURL = ${session.SCM2.value}">
    <!-- 供应链管理 -->
    <li data-name="mms-menu" class="layui-nav-item">
        <div class="system">供应链管理</div>
        <!-- 采购管理 -->
        <dl class="layui-nav-child show">
            <dd data-name="art"
                th:if="${#authPermit.checkMenuPermits(false,'/scm/purchase/*.action')}">
                <a href="javascript:void(0);" lay-direction="2">
                    <i class="layui-icon layui-icon-list"></i>
                    <cite>采购管理</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/scm/purchase/apply/list.action')}">
                        <a th:lay-href="|${scmURL}/scm/purchase/apply/list.action|" lay-text="采购申请">采购申请</a>
                    </dd>
                    <dd data-name="opponent" th:if="${#authPermit.checkMenuPermit('/scm/purchase/apply/summary/list.action')}">
                        <a th:lay-href="|${scmURL}/scm/purchase/apply/summary/list.action|" lay-text="集采汇总">集采汇总</a>
                    </dd>
                    <dd  data-name="button" th:if="${#authPermit.checkMenuPermit('/scm/purchase/order/list.action')}">
                        <a th:lay-href="|${scmURL}/scm/purchase/order/list.action|" lay-text="采购订单">采购订单</a>
                    </dd>
                    <dd  data-name="button" th:if="${#authPermit.checkMenuPermit('/scm/purchase/order/deliver/list.action')}">
                        <a th:lay-href="|${scmURL}/scm/purchase/order/deliver/list.action|" lay-text="订单发货">订单发货</a>
                    </dd>
                    <dd th:if="${#authPermit.checkMenuPermit('/scm/purchase/deliver/list.action')}">
                        <a th:lay-href="|${scmURL}/scm/purchase/deliver/list.action|" lay-text="发货单管理">发货单管理</a>
                    </dd>
                    <dd th:if="${#authPermit.checkMenuPermit('/scm/purchase/returns/list.action')}">
                        <a th:lay-href="|${scmURL}/scm/purchase/returns/list.action|" lay-text="退货管理">退货管理</a>
                    </dd>
                </dl>
            </dd>
        </dl>

        <!-- 调拨管理 -->
        <dl class="layui-nav-child show">
            <dd data-name="art" th:if="${#authPermit.checkMenuPermit('/scm/*/transfer/*.action')}">
                <a href="javascript:void(0);" lay-direction="2">
                    <i class="layui-icon layui-icon-list"></i>
                    <cite>调拨管理</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/scm/warehouse/transfer/list.action')}">
                        <a th:lay-href="|${scmURL}/scm/warehouse/transfer/list.action|" lay-text="仓库调拨">仓库调拨</a>
                    </dd>
                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/scm/engineer/transfer/list.action')}">
                        <a th:lay-href="|${scmURL}/scm/engineer/transfer/list.action|" lay-text="工程师调拨">工程师调拨</a>
                    </dd>
                </dl>
            </dd>
        </dl>

        <!-- 销售出库 -->
        <dl class="layui-nav-child show">
            <dd data-name="art" th:if="${#authPermit.checkMenuPermit('/scm/wms/master/*.action')}">
                <a href="javascript:void(0);" lay-direction="2">
                    <i class="layui-icon layui-icon-list"></i>
                    <cite>销售出库</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/scm/sale/order/list.action-sale')}">
                        <a th:lay-href="|${scmURL}/scm/sale/order/list.action|" lay-text="销售订单">销售订单</a>
                    </dd>
                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/scm/sale/returns/list.action-sale')}">
                        <a th:lay-href="|${scmURL}/scm/sale/returns/list.action|" lay-text="销售退货">销售退货</a>
                    </dd>
                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/scm/sale/order/list.action-receive')}">
                        <a th:lay-href="|${scmURL}/scm/sale/order/list.action?payChannel=4|" lay-text="领用单">领用单</a>
                    </dd>
                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/scm/sale/returns/list.action-receive')}">
                        <a th:lay-href="|${scmURL}/scm/sale/returns/list.action?payChannel=4|" lay-text="领用退货">领用退货</a>
                    </dd>
                </dl>
            </dd>
        </dl>

        <!-- 费用管理 -->
        <dl class="layui-nav-child show">
            <dd data-name="art"
                th:if="${ #authPermit.checkMenuPermit('/scm/*/cost/*.action')}">
                <a href="javascript:void(0);" lay-direction="2">
                    <i class="layui-icon layui-icon-list"></i>
                    <cite>费用管理</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/scm/purchase/freight/list.action')}">
                        <a th:lay-href="|${scmURL}/scm/purchase/freight/list.action|" lay-text="运杂费管理">运杂费管理</a>
                    </dd>
                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/scm/reimburse/list.action')}">
                        <a th:lay-href="|${scmURL}/scm/reimburse/list.action|" lay-text="报销管理">报销管理</a>
                    </dd>
                    <dd data-name="layui-nav-itemed" th:if="${#authPermit.checkMenuPermit('/scm/warehouse/cost/*.action')}">
                        <a href="javascript:;" lay-text="仓库费用管理">仓库费用管理</a>
                        <dl class="layui-nav-child">
                            <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/scm/warehouse/cost/list.action-rental')}">
                                <a th:lay-href="|${scmURL}/scm/warehouse/cost/list.action?warehouseCostType=1|" lay-text="租赁费用管理">&nbsp;&nbsp;租赁费用管理</a>
                            </dd>
                            <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/scm/warehouse/cost/list.action-service')}">
                                <a th:lay-href="|${scmURL}/scm/warehouse/cost/list.action?warehouseCostType=2|" lay-text="服务费用管理">&nbsp;&nbsp;服务费用管理</a>
                            </dd>
                        </dl>
                    </dd>
                </dl>
            </dd>
        </dl>
        <!--审批管理-->
        <dl class="layui-nav-child show">
            <dd  data-name="art" th:if="${#authPermit.checkMenuPermit('/scm/purchase/*/audit/list.action')}">
                <a href="javascript:;" lay-direction="2">
                    <i class="layui-icon layui-icon-list"></i>
                    <cite>审批管理</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd data-name="opponent" th:if="${#authPermit.checkMenuPermit('/scm/purchase/apply/audit/list.action')}">
                        <a th:lay-href="|${scmURL}/scm/purchase/apply/audit/list.action|" lay-text="采购申请审批">采购申请审批</a>
                    </dd>
                    <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/scm/purchase/order/audit/list.action')}">
                        <a th:lay-href="|${scmURL}/scm/purchase/order/audit/list.action|" lay-text="采购订单审批">采购订单审批</a>
                    </dd>
                </dl>
            </dd>
        </dl>

        <!--物流管理-->
        <dl class="layui-nav-child show" th:if="${#authPermit.checkMenuPermit('/scm/logistics/list.action')}">
            <i class="layui-icon layui-icon-list"></i>
            <dd  data-name="button" th:if="${#authPermit.checkMenuPermit('/scm/logistics/list.action')}">
                <a th:lay-href="|${scmURL}/scm/logistics/list.action|" lay-text="物流管理">物流管理</a>
            </dd>
        </dl>

        <!--价格管理-->
        <dl class="layui-nav-child show" th:if="${#authPermit.checkMenuPermit('/scm/price/list.action')}">
            <dd data-name="button" th:if="${#authPermit.checkMenuPermit('/scm/price/list.action')}">
                <i class="layui-icon layui-icon-list"></i>
                <a th:lay-href="|${scmURL}/scm/price/list.action|" lay-text="价格管理">价格管理</a>
            </dd>
        </dl>

        <!--库存查询-->
        <dl class="layui-nav-child show">
            <dd data-name="layui-nav-itemed" th:if="${ #authPermit.checkMenuPermit('/scm/store/*.action')}">
                <a href="javascript:;" lay-direction="2">
                    <i class="layui-icon layui-icon-home"></i>
                    <cite>库存查询</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd data-name="opponent" th:if="${#authPermit.checkMenuPermit('/scm/store/list.action')}">
                        <a th:lay-href="|${scmURL}/scm/store/list.action|" lay-text="总仓">总仓</a>
                    </dd>
                    <dd data-name="opponent" th:if="${#authPermit.checkMenuPermit('/scm/store/engineer/list.action')}">
                        <a th:lay-href="|${scmURL}/scm/store/engineer/list.action|" lay-text="工程师仓">工程师仓</a>
                    </dd>
                </dl>
            </dd>
        </dl>

        <!--基础数据-->
        <dl class="layui-nav-child show">
            <dd class="button" th:if="${#authPermit.checkMenuPermit('/wms/*.action')}">
                <a href="javascript:;" lay-direction="2">
                    <i class="layui-icon layui-icon-list"></i>
                    <cite>基础数据</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd data-name="opponent" th:if="${#authPermit.checkMenuPermit('/wms/warehouse/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/warehouse/list.action|" lay-text="仓库管理">仓库管理</a>
                    </dd>
                    <dd data-name="opponent" th:if="${#authPermit.checkMenuPermit('/wms/supplier/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/supplier/list.action|"  lay-text="供应商管理">供应商管理</a>
                    </dd>
                    <dd data-name="opponent" th:if="${#authPermit.checkMenuPermit('/wms/goods/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/goods/list.action|" lay-text="商品管理">商品管理</a>
                    </dd>
                    <dd data-name="opponent" th:if="${#authPermit.checkMenuPermit('/wms/goods/category/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/goods/category/list.action|" lay-text="商品分类管理">商品分类管理</a>
                    </dd>
                    <dd data-name="opponent" th:if="${#authPermit.checkMenuPermit('/wms/unit/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/unit/list.action|" lay-text="单位管理">单位管理</a>
                    </dd>
                    <dd data-name="opponent" th:if="${#authPermit.checkMenuPermit('/wms/packspec/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/packspec/list.action|" lay-text="包装规格管理">包装规格管理</a>
                    </dd>
                    <dd data-name="opponent" th:if="${#authPermit.checkMenuPermit('/wms/company/list.action')}">
                        <a th:lay-href="|${scmURL}/wms/company/list.action|" lay-text="公司配置">公司配置</a>
                    </dd>
                </dl>
            </dd>
        </dl>


    </li>
</th:block>

</body>
</html>